
import { APP_BASE_HREF, registerLocaleData } from '@angular/common';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import zh from '@angular/common/locales/zh';
import { NgModule  } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CoreModule } from '@app/core/core.module';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { NgxEchartsModule } from 'ngx-echarts';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { SharedModule } from './shared/shared.module';
registerLocaleData(zh);


@NgModule({
  declarations: [
    AppComponent,
  ],
  imports: [
    HttpClientModule,
    AppRoutingModule,
    BrowserModule,
    FormsModule,
    NgZorroAntdModule,
    CoreModule,
    SharedModule,
    BrowserAnimationsModule,
    NgxEchartsModule
  ],
  providers: [

    {
      provide: APP_BASE_HREF,
      useValue: window['_app_base'] || '/',
    }
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
